#ifndef _HTTP_PACKET_PARSING_H
#define _HTTP_PACKET_PARSING_H

#include "Clib.h"
#include <stdint.h>
#include <stdio.h>

#define		FALSE				0
#define		TRUE				1
#define		HTTP_HEAD			(uint8_t*)"HTTP/1.1 "
#define		HTTP_SERVER			(uint8_t*)"Server: "
#define		HTTP_DATE			(uint8_t*)"Date: "
#define		HTTP_CONTENT_TYPE	(uint8_t*)"Content-Type: "
#define		HTTP_CONTENT_LENGTH	(uint8_t*)"Content-Length: "
#define		HTTP_CONNECTION		(uint8_t*)"Connection: "
#define		HTTP_DATA			(uint8_t*)"\r\n\r\n"


int check_http_packet_rece_finish(uint8_t *packet, uint32_t len);
int get_http_packet_content(uint8_t *packet, uint8_t *keyword, uint8_t *buf);


#endif
